package com.bdqn.easybuy1.param;

import com.bdqn.easybuy1.entities.ProductCategory;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ProductCategoryParam extends ProductCategory {
    private Integer startIndex;

    private Integer pageSize;

    private boolean isPage=false;

    private String sort;

    public void openPage(Integer startIndex, Integer pageSize) {
        this.isPage = true;
        this.startIndex = startIndex;
        this.pageSize = pageSize;
    }
}
